﻿using Anke.SHManage.Model;
using Anke.SHManage.MSSQLDAL;
using Anke.SHManage.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anke.SHManage.BLL
{
    public partial class C_AccidentBLL:BaseBLL<C_Accident>
    {
        C_AccidentDAL m_DAL = new C_AccidentDAL();
        public string getMaxID()
        {
            return m_DAL.getMaxAccidentID();
        }

        public object getAccidentList(int page, int rows, ref int total, string zcenterCode, string zstationCode, string zAccidentLevel, string zResponsibility, string zambCode, string zambNumb, DateTime zAccidentTimeStart, DateTime zAccidentTimeEnd, E_StatisticsPermisson em, string selfWorkCode, string selfCenterID, string selfStationID) 
        {
            return m_DAL.getAccidentList(page, rows, ref total, zcenterCode, zstationCode, zAccidentLevel, zResponsibility, zambCode, zambNumb, zAccidentTimeStart, zAccidentTimeEnd  ,em,  selfWorkCode,  selfCenterID,  selfStationID);
        }

        public void getEditACD(string ID, out C_Accident info)
        {

            m_DAL.getEditACD(ID, out info);
        }
    }
}
